package com.xf.system.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * @author xiefengf
 * @version 1.0
 * @date 2024/2/1 17:00
 */
@Schema(description = "部门信息表")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dept")
public class Dept extends BaseModel {

    @Schema(description = "部门名称")
    @TableField(value = "dept_name")
    private String deptName;

    @Schema(description = "父部门id")
    @TableField(value = "parent_id")
    private Long parentId;

    @Schema(description = "祖级列表")
    @TableField(value = "ancestors")
    private String ancestors;

    @Schema(description = "显示顺序")
    @TableField(value = "order_num")
    private Integer orderNum;

    @Schema(description = "负责人")
    @TableField(value = "leader")
    private String leader;

    @Schema(description = "联系电话")
    @TableField(value = "phone_number")
    private String phoneNumber;

    @Schema(description = "邮箱")
    @TableField(value = "email")
    private String email;

    @Schema(description = "部门状态（0正常 1停用）")
    @TableField(value = "status")
    private String status;

}
